n = input("请输入一个整数:")
lst = list(n)
print(lst)
sum = 0
for i in n:
    sum += int(i)
print(sum)